using System;
using System.Windows;
using System.Windows.Media;
using System.ComponentModel;

namespace ViewOn.Helper.WPF
{

    sealed public class RenderCapabilityWrapper : INotifyPropertyChanged
	{
        private static RenderCapabilityWrapper _instance = new RenderCapabilityWrapper();
        
        public event PropertyChangedEventHandler PropertyChanged;

        public static RenderCapabilityWrapper Instance
        {
            get { return _instance; }
        }

		public int StoryBoardFrameRate
		{
            get
            {
                //return 10;
                int tier = RenderCapability.Tier >> 16;

                if (tier == 0)
                    return 15;

                if (tier == 1)
                    return 30;

                //if (tier == 2)
                return 60;
            }
		}
	}

}
